(function($){$.extend({metadata:{defaults:{type:'class',name:'metadata',cre:/({.*})/,single:'metadata'},setType:function(type,name){this.defaults.type=type;this.defaults.name=name;},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);if(!settings.single.length)settings.single='metadata';data="{}";if(settings.type=="class"){var m=settings.cre.exec(elem.className);if(m)
data=m[1];}else if(settings.type=="elem"){if(!elem.getElementsByTagName)return;var e=elem.getElementsByTagName(settings.name);if(e.length)
data=$.trim(e[0].innerHTML);}else if(elem.getAttribute!=undefined){var attr=elem.getAttribute(settings.name);if(attr)
data=attr;}
if(data.indexOf('{')<0)
data="{"+data+"}";data=eval("("+data+")");$.data(elem,settings.single,data);return data;}}});$.fn.metadata=function(opts){return $.metadata.get(this[0],opts);};})(jQuery);;
var navTimeout,currentHoverPage;;(function($){$.fn.navmenu=function(options){options=$.extend({},$.fn.navmenu.defaults,options||{});var homePage,cachedDivs={};var $navMenu=$(this);var $parent=$navMenu.parent();if($parent.hasClass('right')||$parent.hasClass('center'))
$parent.height($navMenu.height());for(var i in options.pageInfo){var page=options.pageInfo[i];if(page.P==0){homePage=page;break;}}
var activePages={};var currentPage=options.pageInfo['a'+pageCode],parentPage;if(currentPage){activePages[currentPage.C]=1;while(1){parentPage=getParentPage(currentPage);if(!parentPage)
break;if(homePage&&parentPage.C==homePage.C)
break;currentPage=parentPage;activePages[currentPage.C]=1;}}
function getDivs(pageCode){if(cachedDivs[pageCode])
return cachedDivs[pageCode];var $divs=$();for(var i in options.pageInfo){var page=options.pageInfo[i];if(page.P!=pageCode)
continue;if(page.C in activePages)
var linkClass='activeLink';else
var linkClass='';linkClass+=' nav {pageCode:'+page.C+',parentId:'+page.P+'}';var target='';if(page.R){var url=page.R;target=page.RT;}else if(page.U){var url=page.U;}else{var url='javascript:void(0)';}
$divs=$divs.add($('<div>',{'class':'linkDiv'}).append($('<a>',{href:url,'class':linkClass,html:page.N,target:target})));}
cachedDivs[pageCode]=$divs;return $divs;}
function getParentPage(childPage){for(var i in options.pageInfo){var page=options.pageInfo[i];if(childPage.P==page.C)
return page;}}
$('a',$navMenu).each(function(){var data=$(this).metadata();if(data.pageCode in activePages)
$(this).addClass('activeLink');});$('a.topLevel',$navMenu).mouseover(function(){clearTimeout(navTimeout);var data=$(this).metadata();if(currentHoverPage==data.pageCode)
return;currentHoverPage=data.pageCode;if(options.animate)
$('div.subLevel').slideUp('fast',function(){$(this).remove();});else
$('div.subLevel').remove();if(homePage&&data.pageCode==homePage.C)
return;var $divs=getDivs(data.pageCode);if($divs.length==0)return;var offset=$(this).offset();var parentWidth=$(this).parent().width();if(options.alignment=='Vertical'){var top=offset.top;var left=offset.left+parentWidth;}else{var top=offset.top+$(this).parent().height()
var left=offset.left;}
if(options.animate)
var display='none';else
var display='block';var $div=$('<div>',{'class':'subLevel',css:{top:top,left:left,minWidth:parentWidth,display:display,zIndex:100}}).append($divs).appendTo('body');if(options.animate)
$div.slideDown('fast');}).each(function(){var data=$(this).metadata();var page=options.pageInfo['a'+data.pageCode];if(page&&page.R){$(this).attr('href',page.R).attr('target',page.RT);}});$('div.linkDiv a').live('mouseover',function(){clearTimeout(navTimeout);var offset=$(this).offset();var data=$(this).metadata();$('div.child-of-'+data.parentId).remove();var $divs=getDivs(data.pageCode);if($divs.length==0)return;var top=offset.top;var left=offset.left+$(this).parent().width();$('<div>',{'class':'subLevel child child-of-'+data.parentId,css:{top:top,left:left}}).append($divs).appendTo('body');});$('a.topLevel,a.nav').live('mouseout',function(){clearTimeout(navTimeout);navTimeout=setTimeout(function(){currentHoverPage=0;if(options.animate){$('div.subLevel').slideUp('fast',function(){$(this).remove();});}else{$('div.subLevel').remove();}},1000);});(function(){var $crumbs=$('#breadCrumbs');if($crumbs.length==0||$crumbs.data('initialized')==true)
return;$crumbs.data('initialized',true);if(pageCode==homePage.C){return;}
var i=0;var html='';var currentPage=options.pageInfo['a'+pageCode];if(!currentPage){return;}
while(1){var parentPage=getParentPage(currentPage);if(!parentPage)break;i++;if(currentPage.C==pageCode)
var linkClass='activeCrumb';else
var linkClass='';html='<a href="'+currentPage.U+'" target="'+currentPage.T+'" class="'+linkClass+'">'
+currentPage.N+'</a> &gt; '+html;currentPage=parentPage;}
if(i<3){return;}
html=html.substring(0,html.length-6);html='<a href="'+homePage.U+'">'+homePage.N+'</a> &gt; '+html;$crumbs.html(html).show();})();(function(){if(homePage&&pageCode==homePage.C)
return;var $clickUnder=$('#clickUnder');if($clickUnder.length==0||$clickUnder.data('initialized')==true)
return;$clickUnder.data('initialized',true);var currentPage=options.pageInfo['a'+pageCode];var topLevelPage;if(!currentPage)return;while(1){var parentPage=getParentPage(currentPage);if(homePage&&parentPage.C==homePage.C){break;}
if(homePage&&parentPage.P==homePage.C){topLevelPage=parentPage;break;}
currentPage=parentPage;}
if(!topLevelPage)topLevelPage=currentPage;var $divs=$();for(var i in options.pageInfo){var page=options.pageInfo[i];if(topLevelPage.C!=page.P)
continue;if(options.alignment!='Vertical'&&page.N.substring(0,1)==' '){page.N=page.N.split(' ').join('&nbsp;');}
if(page.C in activePages)
var linkClass='activeLink';else
var linkClass='';linkClass+=' clickLink nav {pageCode:'+page.C+',parentId:'+page.P+'}';$divs=$divs.add($('<div>',{'class':'clickLinkDiv linkDiv',mouseover:function(){if(options.animate)
$('div.subLevel').slideUp('fast',function(){$(this).remove();});else
$('div.subLevel').remove();},mouseout:function(){currentHoverPage=0;}}).append($('<a>',{href:page.U,target:page.T,'class':linkClass,html:page.N})));}
if(options.alignment=='Vertical')
$clickUnder.remove().appendTo($('a.activeLink').parent()).append($divs);else
$clickUnder.append($divs);})();(function(){$footer=$('#superFooter');if($footer.length==0||!homePage)return;var $ul=$('ul','#superFooterParent'),maxHeight=0;$ul.each(function(){var $this=$(this);var data=$this.metadata();for(var i in options.pageInfo){var page=options.pageInfo[i];if(page.P!=data.pageCode)continue;var $newLi=$('li:first',$this).clone();$('a',$newLi).html(page.N).attr('href',page.U);$newLi.appendTo($this);}});$('li.parent','#superFooterParent').each(function(){var height=$(this).height();if(height>maxHeight)maxHeight=height;}).each(function(){$(this).height(maxHeight+'px');});})();}
$.fn.navmenu.defaults={pageInfo:[],alignment:'Vertical',animate:false};})(jQuery);;$(function() {for (var i in tasks) {window.setTimeout(tasks[i], 0);}});function initMenu(){};$(function(){$("#navMenu").navmenu({pageInfo:{"a136182":{"P":0,"ID":149681,"C":136182,"O":0,"U":"http:\/\/www.biomed.co.nz\/","N":"Home","T":"_top","R":"","RT":"_blank"},"a136183":{"P":136182,"ID":149682,"C":136183,"O":"1","U":"http:\/\/www.biomed.co.nz\/medical-device-safety.html","N":"About Us","T":"_top","R":"","RT":"_blank"},"a149754":{"P":136183,"ID":149760,"C":149754,"O":"1","U":"http:\/\/www.biomed.co.nz\/healthcare-equipment-consultants.html","N":"Testimonials","T":"_top","R":"","RT":"_blank"},"a229523":{"P":136183,"ID":229524,"C":229523,"O":"2","U":"http:\/\/www.biomed.co.nz\/medical-device-calibration.html","N":"Our Clients Locations","T":"_top","R":"","RT":"_blank"},"a149676":{"P":136183,"ID":295148,"C":149676,"O":"4","U":"http:\/\/www.biomed.co.nz\/medical-devices-consultants.html","N":"Recruitment","T":"_top","R":"","RT":"_blank"},"a136185":{"P":136182,"ID":149683,"C":136185,"O":"2","U":"","N":"Our Services","T":"","R":"","RT":"_blank"},"a168920":{"P":136185,"ID":168921,"C":168920,"O":"1","U":"http:\/\/www.biomed.co.nz\/electronic-medical-equipment.html","N":"Compliance","T":"_top","R":"","RT":"_blank"},"a168919":{"P":136185,"ID":168922,"C":168919,"O":"2","U":"http:\/\/www.biomed.co.nz\/medical-equipment-repairs.html","N":"Repairs","T":"_top","R":"","RT":"_blank"},"a168918":{"P":136185,"ID":168923,"C":168918,"O":"3","U":"http:\/\/www.biomed.co.nz\/medical-device-management.html","N":"Consultancy &amp; Management","T":"_top","R":"","RT":"_blank"},"a168917":{"P":136185,"ID":168924,"C":168917,"O":"4","U":"http:\/\/www.biomed.co.nz\/testing-medical-calibration.html","N":"Client Tracking Systems","T":"_top","R":"","RT":"_blank"},"a229513":{"P":136182,"ID":229519,"C":229513,"O":"3","U":"http:\/\/www.biomed.co.nz\/medical-device-legislations.html","N":"Standards &amp; Legislation","T":"_top","R":"","RT":"_blank"},"a235950":{"P":229513,"ID":235954,"C":235950,"O":"1","U":"http:\/\/www.biomed.co.nz\/page235954.html","N":"Potential Hazards","T":"_top","R":"","RT":"_blank"},"a244701":{"P":229513,"ID":244703,"C":244701,"O":"2","U":"http:\/\/www.biomed.co.nz\/page244703.html","N":"Certification","T":"_top","R":"","RT":"_blank"},"a235951":{"P":229513,"ID":283534,"C":235951,"O":"3","U":"http:\/\/www.biomed.co.nz\/medical-device-documentation.html","N":"Checklist","T":"_top","R":"","RT":"_blank"},"a168958":{"P":136182,"ID":245760,"C":168958,"O":"4","U":"http:\/\/www.biomed.co.nz\/hospital-device-standards.html","N":"Equipment Search","T":"_top","R":"","RT":"_blank"},"a149759":{"P":136182,"ID":149762,"C":149759,"O":"5","U":"http:\/\/www.biomed.co.nz\/district-health-board.html","N":"District Health Boards","T":"_top","R":"","RT":"_blank"},"a149758":{"P":136182,"ID":149763,"C":149758,"O":"6","U":"http:\/\/www.biomed.co.nz\/private-surgical-hospital.html","N":"Private Hospitals","T":"_top","R":"","RT":"_blank"},"a244699":{"P":136182,"ID":244700,"C":244699,"O":"7","U":"","N":"Primary Health Care","T":"","R":"","RT":"_blank"},"a245728":{"P":244699,"ID":245737,"C":245728,"O":"1","U":"http:\/\/www.biomed.co.nz\/general practitioner.html","N":"General Practitioner","T":"_top","R":"","RT":"_blank"},"a245731":{"P":244699,"ID":245740,"C":245731,"O":"2","U":"http:\/\/www.biomed.co.nz\/oral surgical clinic.html","N":"Oral Surgical Clinic","T":"_top","R":"","RT":"_blank"},"a245734":{"P":244699,"ID":245743,"C":245734,"O":"3","U":"http:\/\/www.biomed.co.nz\/physiotherapy.html","N":"Physiotherapy","T":"_top","R":"","RT":"_blank"},"a149756":{"P":136182,"ID":149765,"C":149756,"O":"8","U":"http:\/\/www.biomed.co.nz\/rest-home-medical.html","N":"Rest Homes &amp; Hospitals","T":"_top","R":"","RT":"_blank"},"a149755":{"P":136182,"ID":149766,"C":149755,"O":"9","U":"","N":"Other Health Clinics","T":"","R":"","RT":"_blank"},"a168937":{"P":149755,"ID":168939,"C":168937,"O":"1","U":"http:\/\/www.biomed.co.nz\/ambulance-medical-device.html","N":"Ambulance","T":"_top","R":"","RT":"_blank"},"a168936":{"P":149755,"ID":168940,"C":168936,"O":"2","U":"http:\/\/www.biomed.co.nz\/birth-care-medical.html","N":"Birth Care","T":"_top","R":"","RT":"_blank"},"a229481":{"P":149755,"ID":229482,"C":229481,"O":"3","U":"http:\/\/www.biomed.co.nz\/endoscopy-service-medical.html","N":"Endoscopy Service    ","T":"_top","R":"","RT":"_blank"},"a229483":{"P":149755,"ID":229484,"C":229483,"O":"4","U":"http:\/\/www.biomed.co.nz\/fertility-clinic-medical.html","N":"Fertility Clinic","T":"_top","R":"","RT":"_blank"},"a229485":{"P":149755,"ID":229486,"C":229485,"O":"5","U":"http:\/\/www.biomed.co.nz\/fire-service-medical.html","N":"Fire Service","T":"_top","R":"","RT":"_blank"},"a229488":{"P":149755,"ID":229489,"C":229488,"O":"6","U":"http:\/\/www.biomed.co.nz\/general-practitioner-medical.html","N":"General Practitioner","T":"_top","R":"","RT":"_blank"},"a168935":{"P":149755,"ID":168941,"C":168935,"O":"7","U":"http:\/\/www.biomed.co.nz\/helicopter-rescue-medical.html","N":"Helicoptor Rescue &amp; Aviation","T":"_top","R":"","RT":"_blank"},"a168934":{"P":149755,"ID":168942,"C":168934,"O":"8","U":"http:\/\/www.biomed.co.nz\/hospice-medical-device.html","N":"Hospice","T":"_top","R":"","RT":"_blank"},"a229490":{"P":149755,"ID":229491,"C":229490,"O":"9","U":"http:\/\/www.biomed.co.nz\/medical-clinic-medical.html","N":"Medical &amp; Surgical Clinics","T":"_top","R":"","RT":"_blank"},"a229492":{"P":149755,"ID":229493,"C":229492,"O":"10","U":"http:\/\/www.biomed.co.nz\/defence-force-medical.html","N":"NZ Defence Force","T":"_top","R":"","RT":"_blank"},"a229494":{"P":149755,"ID":229495,"C":229494,"O":"11","U":"http:\/\/www.biomed.co.nz\/optometrist-medical-device.html","N":"Optometrist","T":"_top","R":"","RT":"_blank"},"a229496":{"P":149755,"ID":229499,"C":229496,"O":"12","U":"http:\/\/www.biomed.co.nz\/oral-surgical-clinic.html","N":"Oral Surgical Clinic","T":"_top","R":"","RT":"_blank"},"a168932":{"P":149755,"ID":168944,"C":168932,"O":"13","U":"http:\/\/www.biomed.co.nz\/physiotherapy-medical-device.html","N":"Physiotherapy","T":"_top","R":"","RT":"_blank"},"a168927":{"P":149755,"ID":168949,"C":168927,"O":"14","U":"http:\/\/www.biomed.co.nz\/plastic-surgery-medical.html","N":"Plastic Surgeon","T":"_top","R":"","RT":"_blank"},"a168952":{"P":149755,"ID":168957,"C":168952,"O":"15","U":"http:\/\/www.biomed.co.nz\/primary-health-organisation.html","N":"Primary Health Organisations","T":"_top","R":"","RT":"_blank"},"a229500":{"P":149755,"ID":229503,"C":229500,"O":"16","U":"http:\/\/www.biomed.co.nz\/prison-medical-device.html","N":"Prison Service","T":"_top","R":"","RT":"_blank"},"a149751":{"P":136182,"ID":149767,"C":149751,"O":"10","U":"http:\/\/www.biomed.co.nz\/repairs-management-medical.html","N":"FAQ Section","T":"_top","R":"","RT":"_blank"},"a149677":{"P":136182,"ID":149686,"C":149677,"O":"11","U":"http:\/\/www.biomed.co.nz\/electronic-hospital-equipment.html","N":"Client Access","T":"_top","R":"","RT":"_blank"},"a149752":{"P":136182,"ID":149768,"C":149752,"O":"12","U":"http:\/\/www.biomed.co.nz\/medical-device-consultant.html","N":"Newsletters","T":"_top","R":"","RT":"_blank"},"a149675":{"P":136182,"ID":149688,"C":149675,"O":"13","U":"http:\/\/www.biomed.co.nz\/biomedical-device-consulting.html","N":"Contact Us","T":"_top","R":"","RT":"_blank"}},alignment:"Vertical",animate:0})});